<html>
<head>
<title><?php echo $title;?></title>
</head>
<body>
<h1><?php echo $title;?></h1>
<?php foreach($comments as $comment):?>
<p><?php echo $comment['author'];?></p>
<p><?php echo $comment['text'];?></p>
<p><?php echo anchor('movie','Back to movies');?></p>
<hr />
<?php endforeach;?>
<?php echo form_open('movie/insert_comment');?>
<?php echo form_hidden('movie_id',$this->uri->segment(3));?>
<p>Enter your comments below:</p>
<p><textarea name="text" rows="10"></textarea></p>
<p>Author:</p>
<p><input type="text" name="author" /></p>
<p><input type="submit" value="Submit Comment" /></p>
</form>
</body>
</html>


